<template>
  <div class="doctor-info">
    <div class="doctor-info-1">
      <div class="di1-image"></div>
    </div>
    <div class="doctor-info-2">
      <div class="di2-top">
        <span>王医生</span>
        <span>内分泌科</span>
        <span>|</span>
        <span>主任医师</span>
      </div>
      <div class="di2-bottom">
        <span>三甲</span>
        <span>积水潭医院</span>
      </div>
    </div>
    <div class="doctor-info-3">
      <div class="di3-btn">进入咨询</div>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.doctor-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  &-1 {
    width: 60px;
    // background-color: red;
  }
  .di1-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ccc;
  }
  &-2 {
    // 1 1 0% 宽度自动变换， 1空间有剩余自动扩大， 1空间不够自动缩小  0% 自动设置宽度
    flex: 1;
    // background-color: green;
    .di2-top {
      span:nth-child(1) {
        font-size: 16px;
        font-weight: bold;
      }
      span:nth-child(2) {
        margin-left: 10px;
        font-size: 12px;
        color: var(--cp-tip);
      }
      span:nth-child(3) {
        font-size: 12px;
        color: var(--cp-tip);
        margin: 0 5px;
      }
      span:nth-child(4) {
        font-size: 12px;
        color: var(--cp-tip);
      }
    }
    .di2-bottom {
      margin-top: 5px;
      display: flex;
      align-items: center;
      span:nth-child(1) {
        color: var(--cp-white);
        background-color: #3482f6;
        font-size: 12px;
        padding: 3px 6px;
        border-radius: 4px;
      }
      span:nth-child(2) {
        margin-left: 4px;
        // position: relative; // static
        // top: 1px;
      }
    }
  }
  &-3 {
    width: 80px;
    // background-color: blue;
  }
  .di3-btn {
    // rgba(1,1,1, 透明度 0-1)
    // 16进制的颜色值 #000000  如果写8位，后两位就是透明度，  0 - f  00是全透明  ff是不透明
    background-color: #16c2a322;
    color: var(--cp-primary);
    padding: 4px 10px;
    border-radius: 20px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
  }
}
</style>
